package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserProjectAccount对象", description="用户所拥有的采集账号列表")
public class UserProjectAccount implements Serializable {
    private static final long serialVersionUID = 7534594039425450790L;

    /**
     * 主键，分布式ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "所属用户")
    private String username;

    @ApiModelProperty(value = "所属软件")
    private String projectId;

    @ApiModelProperty(value = "账号名称")
    private String name;

    @ApiModelProperty(value = "账号Cookie")
    private String cookie;

    @ApiModelProperty(value = "Token")
    public String accessToken;

    @ApiModelProperty(value = "代理IP")
    public String agentIp;
}
